home *** CD-ROM | disk | FTP | other *** search
- Path: legba.synergy.net!usenet
- From: Danny Gornell <glock20@novia.net>
- Newsgroups: comp.lang.c
- Subject: Oracle Porting Problem
- Date: Tue, 30 Jan 1996 13:56:56 -0600
- Organization: Synergy Communication Inc.
- Message-ID: <310E7808.41C67EA6@novia.net>
- NNTP-Posting-Host: micromgr.bellevue.prc.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b3 (X11; I; SunOS 4.1.3 sun4m)
-
- Situation: I have posted these questions on the comp.databases.oracle
- and got little response. I don't believe there were enough "C"
- programmers reading that group to give an adequate response.
-
- General: Load external data produced in audits by the OS into an Oracle7
- DBMS in real time or near real time.
-
- Specific: We are porting our "C" code to run againist Oracle. It
- currently runsagainist Sybase and we us the Data BCP functionality to
- load this audit inform-ation into Sybase. We need to add the ability to
- do the same thing with Oracle in the same code. The delimited external
- data is roughly 80k in size, and is being producted by UNIX OS's of one
- or more clients on a network. They are transmitted to the server in real
- or near real time. The code is designed to process data from large
- numbers of clients producing regular audit data. The amount of data that
- is required to be processed increases exponentially with the number of
- clients on the network and the users activity. The BCP utility is useful
- because it can be accessed directly through specific Sybase "C" calls
- (dblib.h), and because it is a fast and efficent utility. The need for
- efficency and speed is obivious.
-
- Oracle has a utility that works generally the same way. The SQL*Loader
- utility is designed to provide the same functionality. The problem is
- that to the best of our knowledge SQL*Loader is an internal Oracle
- system that cannot be accessed directly in "C" code. The process must be
- automatic and not just a system called to invoke SQL*Loader in the code.
-
- The other alternative is to put all the audit data into strings and use
- a SQL statements to load it into Oracle using Pro*C. This is will work
- but only in a limited fashion because of the performance loss incurred.
- Again considering the potiental amount of data that is required to be
- processed we don't see this as a feasble option.
-
- We have also taken a good look at the Oracle Call Interface and not
- found any answers there.
-
- I would appreciate any comments on the workings of Oracle, OCI, and
- SQL*Loader or a way to speed up a Pro*C approach.
-
- I would like to thank those who have provided us with their valuable
- input and thank those in advance who respond to this posting.
-
- Danny Gornell
- PRC Bellevue
-
- gornell_danny@po.gis.prc.com
-